<template>
  
    <tr>
       <td> 
          <input type="checkbox" v-model="show[index].isshow" >
       </td>
       <td>{{name}}</td>
       <td>{{price}}</td>
       <td ><button @click="dec">-</button> {{num}} <button @click="add">+</button></td>
       <td >{{total}}</td>
       <td><button @click="del">删除</button></td>
    </tr>
  
</template>

<script>

export default {
        props:['name','price','num','index','total','show','zong'],
        data(){
          return{
               data(){
                   return {
                  
                   }
               }
          }
        },
        methods:{
          del(index){
             this.$emit('harry',this.index)
          },
          dec(index){
           this.$emit('jian',this.index)
          },
          add(index){
            this.$emit('jia',this.index)
          }
        }
}
</script>

<style>

</style>